#include<stdio.h>
#include "doublelist.h"

int main()
{
    printf("请输入链表：\n");
    Head *h1 = createlist();//创建头结点链表
        int num;
        while(1)//输入数据到节点中
        {
            scanf("%d",&num);
            if(num == 0)
            {
                break;
            }
            inserTolist(num,h1);
            //inser_high_Tolist(num,h1);
    }
    printflist(h1);
    deleteMin(h1);
    printflist(h1);
    clearlist(h1);
    deletelist(h1);
}